import http from '@/utils/http'
import type {ResponseData} from "@/types/user";

// 获取详情接口
export const getMemberOrderPreAPI = () => {
  return http<ResponseData<any>>({
    url: '/member/order/pre'
  })
}

// 创建订单
export const postMemberOrderAPI = (data) => {
  return http<ResponseData<any>>({
    url: '/member/order',
    method: 'POST',
    data
  })
}

export const postMemberAddressAPI = (data)=>{
  return http<ResponseData<any>>({
    url:'/member/address',
    method:'post',
    data
  })
}